<script lang="ts" setup>
import "@/utils/rem"
import { ref } from "vue"
import { useRouter } from "vue-router"
const router = useRouter()
const name = ref<any>()
const phone = ref<any>()
const onSubmit = async () => {
  router.push(`/hr/listOwer?n=${name.value}&&p=${phone.value}`)
}

defineOptions({
  name: "OrderSearch"
})
</script>
<template>
  <div style="max-width: 750px; margin: 0 auto" class="bg">
    <div style="text-align: center">
      <img src="@/assets/layout/ordersearch.jpg" alt="" style="width: 229px; height: 229px" />
    </div>
    <div class="form">
      <van-form @submit="onSubmit">
        <van-cell-group inset>
          <h2 style="font-size: 18px; padding: 0.2rem; text-align: center">查询您的简历</h2>
          <van-field
            v-model="name"
            name="姓名"
            label="姓名"
            placeholder="请输入姓名"
            :rules="[{ required: true, message: '请填写姓名' }]"
          />
          <van-field
            v-model="phone"
            name="联系电话"
            label="联系电话"
            placeholder="请输入联系方式"
            :rules="[{ required: true, message: '请填写联系电话' }]"
          />
          <div style="margin: 16px; background-color: #fff">
            <van-button round block type="primary" native-type="submit"> 查 询 </van-button>
            <van-button style="border: 0; background: transparent; color: #1989fa" block to="/hr/add">
              还没简历？去投递
            </van-button>
          </div>
        </van-cell-group>
      </van-form>
    </div>
  </div>
</template>
<style lang="scss" scoped>
.form {
  width: 7rem;
  // height: 7rem;
  position: relative;
  // top: 35%;
  left: 50%;
  margin-left: -3.5rem;
}
.bg {
  position: relative;
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #7cc1ff, #3b99f1);
}
.recomBack {
  height: 392px;
  background: url("http://fansitexitong.cn/images/tjtc.png") no-repeat;
  background-size: 100% 100%;
}
.orderlist {
  p {
    font-size: 12px;
    line-height: 1.5em;
    padding-left: 0.4rem;
  }
}
.mb {
  margin-bottom: 0.1rem;
  padding: 0.2rem;
}
:deep(.van-popup--center.van-popup--round) {
  width: 80%;
}
:deep(.van-cell-group--inset) {
  margin-bottom: 0.1rem;
}
.orderInfo {
  :deep(.van-cell-group) {
    background-color: transparent;
    margin: 0;
    margin-bottom: 0.1rem;
  }
  :deep(.van-cell) {
    margin-bottom: -1px;
    // border: 1px solid #2c96ff;
  }
}
:deep(.van-cell:after) {
  border-bottom: 0;
}
.card-content {
  box-sizing: border-box;
  padding: 18.26% 2% 2% 2%;
}
.card-scroll {
  height: 260px;
  width: 100%;
  overflow: hidden;
  overflow-y: auto;
}
.list {
  box-sizing: border-box;
  // margin-top: 0.1rem;
  :deep(.van-card) {
    padding: 0;
    background-color: #fff;
  }
  :deep(.van-cell) {
    border-radius: 0.2rem;
    margin-bottom: -1px;
    // border: 1px solid #2c96ff;
  }
  .actItem {
    border: 1px solid #0e85fc;
  }
  .tagY {
    background: linear-gradient(137deg, #fa9d5d, #ff3162);
    border-radius: 2px;
    color: #fff;
    font-size: 10px;
    height: 18px;
    line-height: 18px;
    margin-right: 10px;
    padding: 3px 7px;
    z-index: 9;
    font-size: 12px;
  }
  .list-box {
    height: 5.3rem;
    overflow: hidden;
    overflow-y: auto;
  }
  :deep(.van-card__thumb) {
    width: 2.2rem !important;
    height: 2.2rem !important;
  }
  :deep(.van-card__bottom) {
    text-align: right;
  }
  :deep(.van-ellipsis) {
    overflow: initial !important;
    white-space: initial !important;
    text-overflow: initial !important;
    color: #000 !important;
    font-size: 14px !important;
  }
}
:deep(.van-card__content) {
  text-align: left;
}
.changePup {
  .title {
    font-size: 16px;
    padding-top: 0.2rem;
  }
  .title::before {
    content: "";
    position: absolute;
    left: 15px;
    width: 4px;
    height: 16px;
    top: 0.5rem;
    background: #06f;
    border-radius: 10px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}
</style>
